<table width="200" height="5" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td></td>
  </tr>
</table>
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="209" height="618" valign="top"><table width="205" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><img src="<?php echo SITE_URL?>img/photo/photoview_r1_c1.jpg" width="205" height="9" /></td>
      </tr>
    </table>
      <table width="205" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="18" align="center" valign="top" background="<?php echo SITE_URL?>img/photo/photoview_r2_c1.jpg">
           	<?php if( $photos->haveToPaginate() ): ?>
	          	<a href="<?php echo '/scene/img?sid='.$sceneId.'&pid='.$photoId.'&page='.$photos->getPreviousPage()?>">
	          		<img src="<?php echo SITE_URL?>img/photo/photoview_r3_c3.jpg" width="96" height="48" />
	          	</a>
          	<?php endif;?>
          </td>
        </tr>
        <tr>
          <td height="19" valign="top" background="<?php echo SITE_URL?>img/photo/photoview_r2_c1.jpg"><table width="150" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td><img src="<?php echo SITE_URL?>img/photo/photoview_r8_c2.jpg" width="150" height="4" /></td>
            </tr>
          </table>
            <table width="150" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td height="87" align="center" background="<?php echo SITE_URL?>img/photo/photoview_r10_c2.jpg">
                <?php 
                foreach ($photos->getResults() as $v):
                ?>
                <br>
                	<a href="/scene/img?sid=<?php echo $sceneId?>&pid=<?php echo $v->getId()?>&page=<?php echo $page?>">
                		<img src="<?php echo SITE_URL.'uploads/'.$v->getSrc();?>" width="80" height="80" class="img" />
                	</a>
                <br>
                <?php endforeach;?>
                <br></td>
              </tr>
            </table>
            <table width="150" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td><img src="<?php echo SITE_URL?>img/photo/photoview_r20_c2.jpg" width="150" height="10" /></td>
              </tr>
            </table></td>
        </tr>
        <tr>
          <td height="37" align="center" valign="top" background="<?php echo SITE_URL?>img/photo/photoview_r2_c1.jpg">
          	<?php if( $photos->haveToPaginate() ): ?>
	          	<a href="<?php echo '/scene/img?sid='.$sceneId.'&pid='.$photoId.'&page='.$photos->getNextPage()?>">
	          		<img src="<?php echo SITE_URL?>img/photo/photoview_r21_c3.jpg" width="98" height="53" />
	          	</a>
          	<?php endif;?>
          </td>
        </tr>
      </table>
      <table width="205" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/photo/photoview_r23_c1.jpg" width="205" height="8" /></td>
        </tr>
      </table></td>
    <td width="557" valign="top"><table width="553" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><img src="<?php echo SITE_URL?>img/photo/photoview_r1_c9.jpg" width="553" height="9" /></td>
      </tr>
    </table>
      <table width="553" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="104" align="center" background="<?php echo SITE_URL?>img/photo/photoview_r3_c9.jpg">
          <br><img src="<?php echo SITE_URL.'uploads/'.$photoInfo->getSrc();?>" border="1" bordercolor="#ccccccc" width="500" /><br><br></td>
        </tr>
      </table>
      <table width="553" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/photo/photoview_r12_c9.jpg" width="553" height="8" /></td>
        </tr>
      </table>
      <table width="553" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="10"></td>
        </tr>
      </table>
      <table width="553" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="36" height="33" background="<?php echo SITE_URL?>img/photo/photoview_r14_c10.jpg"><img src="<?php echo SITE_URL?>img/photo/photoview_r14_c8.jpg" width="5" height="33" /></td>
          <td width="483" background="<?php echo SITE_URL?>img/photo/photoview_r14_c10.jpg" class="login">
          	该照片由<span class="word">
          		<?php $userInfo = getUserById($photoInfo->getUserId()); ?>
          		<a href="<?php echo SNS_URL.'/../space.php?uid='.$photoInfo->getUserId()?>"><?php echo $userInfo['username']?></a>
          	</span>发布，转载请取得其同意！
          </td>
          <td width="34" align="right" background="<?php echo SITE_URL?>img/photo/photoview_r14_c10.jpg"><img src="<?php echo SITE_URL?>img/photo/photoview_r14_c12.jpg" width="4" height="33" /></td>
        </tr>
      </table>
      <table width="553" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>
      <table width="553" border="1" bordercolor="#FFCC99" cellspacing="0" cellpadding="0">
        <tr>
          <td bgcolor="#FFFFCC">&nbsp;&nbsp;<span class="tit">照片说明</span><br>&nbsp;&nbsp;&nbsp;&nbsp;
          	<span class="word"><?php echo $photoInfo->getDes();?></span>
          </td>
        </tr>
      </table>
      <table width="553" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>
      <table width="553" border="1" bordercolor="#FFCC99" cellspacing="0" cellpadding="0">
        <tr>
          <td><table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td class="tit" height="27">评论内容</td>
            </tr>
            <tr>
              <td class="tit" height="20">&nbsp;</td>
            </tr>
          </table>
            
            <?php
            	foreach ($comments as $v):
            		$userInfo = getUserById($v->getUserId()); 
            ?>
            <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="12%" rowspan="2" align="center" valign="top" height="50">
                	<img src="<?php echo SITE_URL?>img/photo/made_r20_c6.jpg" width="38" height="38" class="headimg" />
                </td>
                <td height="20"><span class="yhbig"><?php echo $userInfo['username']?></span><span class="word">于2008年12月11日发表说：</span></td>
              </tr>
              <tr>
                <td class="word"><?php echo $v->getContent();?></td>
              </tr>
            </table>
            <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td bgcolor="#CCCCCC" height="1"></td>
              </tr>
            </table>
            <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td height="5"></td>
              </tr>
            </table>
            <?php endforeach;?>
           </td>
        </tr>
      </table>
      <table width="553" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>
      <table width="553" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/photo/photoview_r16_c8.jpg" width="552" height="10" /></td>
        </tr>
      </table>
      <table width="552" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td background="<?php echo SITE_URL?>img/photo/photoview_r18_c8.jpg" height="25" class="tit">&nbsp;&nbsp;我也说两句</td>
        </tr>
        <tr>
          <td align="center" background="<?php echo SITE_URL?>img/photo/photoview_r18_c8.jpg">
          	<form id="commentsForm" name="commentsForm" method="post" action="/Comments/update">
                <textarea name="content" cols="50" rows="5" class="textinfo"></textarea>
                <input type="hidden" name="object_type" value="photo">
                <input type="hidden" name="object_id" value="<?php echo $photoInfo->getId()?>">
              </form>
          </td>
        </tr>
        <tr>
          <td align="center" height="50">
          	<img src="<?php echo SITE_URL?>images/info_r13_c6.jpg" width="48" height="32" onclick="$('form')[0].submit()"/>
          </td>
        </tr>
        <tr>
          <td background="<?php echo SITE_URL?>img/photo/photoview_r18_c8.jpg">&nbsp;</td>
        </tr>
      </table>
      <table width="553" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="6"><img src="<?php echo SITE_URL?>img/photo/photoview_r23_c8.jpg" width="552" height="6" /></td>
        </tr>
      </table></td>
    <td width="234" valign="top"><table width="211" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><img src="<?php echo SITE_URL?>img/photo/photoview_r1_c15.jpg" width="211" height="20" /></td>
      </tr>
    </table>
      <table width="211" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="55" background="<?php echo SITE_URL?>img/photo/photoview_r6_c15.jpg"><table width="90" border="0" align="center" cellpadding="0" cellspacing="0" class="tit">
            <tr>
              <td height="30" align="center">最近游客</td>
            </tr>
          </table>
            <table width="150" border="1" bordercolor="#FFCC99" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td align="center" bgcolor="#FFFFFF">
              	<?php 
              	foreach ($visiter as $v):
              		$userInfo = getUserById($v->getUserId());
              	?>
          		<br><img src="<?php echo SITE_URL."ucenter/avatar.php?uid=".$v->getUserId()."&size=small"?>" width="80" height="80" class="img" /><br>
            	<span class="yh"><?php echo $userInfo['username']?></span><br>
            	<?php endforeach;?>
               </td>
            </tr>
          </table>
            <table width="90" border="0" align="center" cellpadding="0" cellspacing="0" class="tit">
              <tr>
                <td height="20" align="center"></td>
              </tr>
            </table></td>
        </tr>
      </table>
      <table width="211" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/photo/photoview_r22_c15.jpg" width="211" height="15" /></td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>
